
from win_outpout.execute_action import article_export
from selenium_export.parse_db import read_wiznote_db

if __name__ == '__main__':
    file_base_folder  = 'E:\\wizNoteExport\\'
    db_file = r'C:\Users\10365\Documents\My Knowledge\Data\1036522761@qq.com\index.db'
    df = read_wiznote_db(db_file)
    # 遍历df 获取 DOCUMENT_GUID 和 DOCUMENT_TITLE
    for index, row in df.iterrows():
        title= row['DOCUMENT_TITLE']
        uuid = row['DOCUMENT_GUID']
        print('title=', title, ' uuid=', uuid)
        article_export(uuid, title, file_base_folder)
        print('++++++++++++++++index=', index)
    print('done')
